package chapter5.extend;

public class Fruit {
    private double weight;

    public double getWeight() {
        return weight;
    }

    public void setWeight(double weight) {
        this.weight = weight;
    }

    public void info() {
        System.out.println("这是一个水果，重量:" + weight + "g");
    }
}
